package org.example.content.Controller;

import org.example.content.service.ContentService;
import org.example.model.domain.Content;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/content")
public class ContentController {
    @Autowired
    private ContentService contentService;
    @RequestMapping("/list")
    public List<Content> listContent(){
        return contentService.selectContentList();
    }
}
